﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:f643854b-b2aa-40f1-86de-e94515e0dbdc 
 * Form Name:PRChangeDocTypeUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangeDocTypeUIModel
{
	[FormRegister("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangeDocTypeUIModel.PRChangeDocTypeUIFormWebPart", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart", "f643854b-b2aa-40f1-86de-e94515e0dbdc","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangeDocTypeUIModel.PRChangeDocTypeUIFormWebPart', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart', 'f643854b-b2aa-40f1-86de-e94515e0dbdc')
	///<siteMapNode url="~/erp/simple.aspx?lnk=f643854b-b2aa-40f1-86de-e94515e0dbdc" title="PRChangeDocTypeUIForm"/>
    public partial class PRChangeDocTypeUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(PRChangeDocTypeUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new PRChangeDocTypeUIModelAction Action
		{
			get { return (PRChangeDocTypeUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		PRChangeDocTypeUIModelModel _uimodel=null;
		public new PRChangeDocTypeUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new PRChangeDocTypeUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as PRChangeDocTypeUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnSave;
        IUFButton BtnCancel;
        IUFButton BtnAdd;
        IUFButton BtnDelete;
        IUFButton BtnFind;
        IUFButton BtnList;
        IUFButton BtnFirstPage;
        IUFButton BtnPrevPage;
        IUFButton BtnNextPage;
        IUFButton BtnLastPage;
        IUFCard Card0;
        IUFCard Card2;
        IUFLine Line0;
        IUFLabel lblCode97;
        IUFFldTextBox Code97;
        IUFLabel lblName58;
        IUFFldTextBox Name58;
        IUFLabel lblShortName88;
        IUFFldTextBox ShortName88;
        IUFLabel lblDescription76;
        IUFFldTextBox Description76;
        IUFLabel lblDocHeaderSequenceStyle94;
        IUFFldDropDownList DocHeaderSequenceStyle94;
        IUFLabel lblDocHeaderSequence73;
        IUFFldReference DocHeaderSequence73;
        IUFLabel lblID97;
        IUFFldNumberControl ID97;
        IUFLabel lblSysVersion115;
        IUFFldNumberControl SysVersion115;
        IUFLabel lblIsDocNoEditable213;
        IUFFldCheckBox IsDocNoEditable213;
        IUFLabel lblApproveType91;
        IUFFldDropDownList ApproveType91;
        IUFLabel lblConfirmType34;
        IUFFldDropDownList ConfirmType34;
        IUFLabel lblEffective_EffectiveDate73;
        IUFFldDatePicker Effective_EffectiveDate73;
        IUFLabel lblEffective_DisableDate118;
        IUFFldDatePicker Effective_DisableDate118;
        IUFLine Line1;
        IUFLine Line2;
        IUFLine Line3;
        IUFLabel lblEffective_IsEffective274;
        IUFFldCheckBox Effective_IsEffective274;
        IUFLabel lblBusType85;
        IUFFldDropDownList BusType85;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public PRChangeDocTypeUIFormWebPart()
        {
            FormID = "f643854b-b2aa-40f1-86de-e94515e0dbdc";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnSave.Click += new EventHandler(BtnSave_Click);		
						
				//Button控件事件
			this.BtnCancel.Click += new EventHandler(BtnCancel_Click);		
						
				//Button控件事件
			this.BtnAdd.Click += new EventHandler(BtnAdd_Click);		
						
				//Button控件事件
			this.BtnDelete.Click += new EventHandler(BtnDelete_Click);		
						
				//Button控件事件
			this.BtnFind.Click += new EventHandler(BtnFind_Click);		
						
				//Button控件事件
			this.BtnList.Click += new EventHandler(BtnList_Click);		
						
				//Button控件事件
			this.BtnFirstPage.Click += new EventHandler(BtnFirstPage_Click);		
						
				//Button控件事件
			this.BtnPrevPage.Click += new EventHandler(BtnPrevPage_Click);		
						
				//Button控件事件
			this.BtnNextPage.Click += new EventHandler(BtnNextPage_Click);		
						
				//Button控件事件
			this.BtnLastPage.Click += new EventHandler(BtnLastPage_Click);		
						

	
            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new PRChangeDocTypeUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{new InParameterModel("PRChangeDocType"),},new InParameterModel[]{new InParameterModel("PRChangeDocType","@ID","@ID"),});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (PRChangeDocTypeUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
    		if(this.Consumer.Count > 0 && this.IsConsuming)
			{
				OnPreRenderConsumer(new InParameterModel[]{new InParameterModel("PRChangeDocType"),},new InParameterModel[]{new InParameterModel("PRChangeDocType","@ID","@ID"),});
				OnLoadData(this);//对吗？
			}
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
				//BtnFind对应隐藏域的数据传递。:True
				UFIDA.U9.UI.PDHelper.CommonReferenceHelper.BindingBtnFindParam(this);
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new PRChangeDocTypeUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"PRChangeDocTypeUIForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Value"),},new GridRowDef[]{new GridRowDef(28,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card2, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 28, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 28,"1", "",true,false,"8288c5a3-3b19-48d3-b139-f7018d2782ee","8288c5a3-3b19-48d3-b139-f7018d2782ee","321ce245-b96b-4fff-bede-b663c3f797ba");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action = "SaveClick";
	                            this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 28,"2", "",true,false,"f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","08542eab-3e9d-40df-b2a5-f917c5ef827c");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action = "CancelClick";
	                            this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 28,"3", "",true,false,"19478b02-d2a9-4d7e-b7af-00070c61ff2d","19478b02-d2a9-4d7e-b7af-00070c61ff2d","5e5c5e84-ade7-4b8d-abd7-dab09b606ab4");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action = "NewClick";
	                            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28,"4", "",true,false,"0467218f-229b-4954-b2d4-3c5976467f76","0467218f-229b-4954-b2d4-3c5976467f76","85ca3882-f2bb-48ce-901e-0ce394e6cce1");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action = "DeleteClick";
	                            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 28,"12", "",true,false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","48121924-c4af-4f66-8d1a-57bb2b96892a");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action = "FindClick";
	                            this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 28,"13", "",true,false,"c639596b-5a8c-4fc1-88bb-a3d670cda992","c639596b-5a8c-4fc1-88bb-a3d670cda992","ea5d4d9a-40e7-419e-8209-7daeba63c66d");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action = "ListClick";
	                            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 28,"15", "",true,false,"f229e163-fcd1-4f6a-a645-df86c0efd8ec","f229e163-fcd1-4f6a-a645-df86c0efd8ec","43cc7da9-0293-46b3-aef8-db08d05e5bba");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action = "FirstPage";
	                            this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 28,"16", "",true,false,"5ed368d8-7616-4696-b671-3f1c895f3b43","5ed368d8-7616-4696-b671-3f1c895f3b43","3eeb1b2e-adfa-442d-aea8-05a3377ceda6");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action = "PrevPage";
	                            this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 28,"17", "",true,false,"36afec41-957c-493a-97a4-eddb136af5b4","36afec41-957c-493a-97a4-eddb136af5b4","8cd1cbef-1724-4eee-9834-5c533ce27be9");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action = "NextPage";
	                            this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 28,"18", "",true,false,"dc4a37d1-35de-4016-81dd-582aef3cdeb0","dc4a37d1-35de-4016-81dd-582aef3cdeb0","6f86dd7f-6df5-4094-8b1a-f36f1ee41a86");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action = "LastPage";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","70c7c846-c0fd-481d-bf2d-f7cd2eb4b434");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器








            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card2(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card2",true,"none", true, true, "2","1d9401bf-d4f7-4b17-a87e-10c93b794b87","5b8c8045-44ce-4c2d-9706-cda91d893ee9");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 12, 17, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  this.Model.PRChangeDocType, "PRChangeDocType", "", null, 1, "请购订单变更单据类型");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(153,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(153,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(19,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(19,bool.Parse("False")),});
            this.Card2 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.Line0 = UIControlBuilder.BuilderUFLine(_UFCard, "Line0", 311, "Horizontal", "True", 311, 20, 0, 0, 3, 1, "100","3ed0d815-1fd9-4186-b255-5ec6ce77046c","3ed0d815-1fd9-4186-b255-5ec6ce77046c");
	

		
			UIControlBuilder.BuilderUFControl(this.Line0, "0");		


				this.lblCode97 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblCode97", "", "True", "True", "Right", 153, 20, 0, 1, 1, 1, "100","1d9401bf-d4f7-4b17-a87e-10c93b794b87","8b6005d2-48bc-4e5a-a616-496cee0d8e2a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblCode97, "1");		


				this.Code97 = UIControlBuilder.BuilderTextBox(_UFCard, "Code97", "False", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblCode97","","50","1d9401bf-d4f7-4b17-a87e-10c93b794b87","cb24cdd4-5457-406c-8e40-2cac90bdb1fc");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Code97, "False", "Code", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldCode, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Code97, "2");		
		 

				this.lblName58 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblName58", "", "True", "True", "Right", 153, 20, 0, 2, 1, 1, "100","fd492224-c4d4-45de-b571-a92293b55798","416f8aac-1338-44c8-a55a-3a33bab3d63a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblName58, "3");		


				this.Name58 = UIControlBuilder.BuilderTextBox(_UFCard, "Name58", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 2, 1, 1, "True", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblName58","","255","fd492224-c4d4-45de-b571-a92293b55798","c7b7578b-58c5-4aee-abd2-4262dca67cc1");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Name58, "False", "Name", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldName, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Name58, "4");		
		 

				this.lblShortName88 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblShortName88", "", "True", "True", "Right", 153, 20, 0, 3, 1, 1, "100","cbc10fab-f885-40ca-931e-6c5ae3337ddc","771f2695-7dab-4010-a463-03da8d20dcd4");


								

		
			UIControlBuilder.BuilderUFControl(this.lblShortName88, "5");		


				this.ShortName88 = UIControlBuilder.BuilderTextBox(_UFCard, "ShortName88", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 3, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblShortName88","","50","cbc10fab-f885-40ca-931e-6c5ae3337ddc","21bcac5a-8bc4-4120-aff0-9848a0b0a645");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ShortName88, "False", "ShortName", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldShortName, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.ShortName88, "6");		
		 

				this.lblDescription76 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDescription76", "", "True", "True", "Right", 153, 20, 0, 4, 1, 1, "100","62d2d55e-0c5b-426b-84e5-a4466e64268a","f1547fb9-dd23-421c-a62a-e5e111a972d0");


								

		
			UIControlBuilder.BuilderUFControl(this.lblDescription76, "7");		


				this.Description76 = UIControlBuilder.BuilderTextBox(_UFCard, "Description76", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 4, 1, 1, "True", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblDescription76","","2000","62d2d55e-0c5b-426b-84e5-a4466e64268a","86ad0198-51d9-4f27-8bc2-bf6941b22799");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Description76, "False", "Description", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldDescription, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Description76, "8");		
		 

				this.lblDocHeaderSequenceStyle94 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocHeaderSequenceStyle94", "", "True", "True", "Right", 153, 19, 0, 6, 1, 1, "100","b1327203-a57f-4201-9647-07fbe3fb457b","1f941d84-2084-444f-abc0-ce1080a9856b");


								

		
			UIControlBuilder.BuilderUFControl(this.lblDocHeaderSequenceStyle94, "9");		


		        this.DocHeaderSequenceStyle94 = UIControlBuilder.BuilderDropDownList(_UFCard, "DocHeaderSequenceStyle94", "UFIDA.U9.Base.Doc.DocHeaderSequenceStyleEnum", false,  true, true, "Left", 2, 60, 0, 153, 19, 2, 6, 1, 1, "100",true,false,"lblDocHeaderSequenceStyle94","b1327203-a57f-4201-9647-07fbe3fb457b","3edec43f-718c-4f01-933b-8b1706525292");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocHeaderSequenceStyle94, "False", "DocHeaderSequenceStyle", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldDocHeaderSequenceStyle, "PRChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.DocHeaderSequenceStyleEnum");
			EnumControlsMap.Add(this.DocHeaderSequenceStyle94, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.DocHeaderSequenceStyle94, "10");		
		 

				this.lblDocHeaderSequence73 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocHeaderSequence73", "", "True", "True", "Right", 153, 20, 0, 7, 1, 1, "100","3ace27a1-1605-492b-a7a6-2536761903ad","e048298f-8d6d-4159-b244-f9939f3b62c8");

			UIControlBuilder.SetLabelFormReference(this.lblDocHeaderSequence73,"922bef2b-1cd8-4d51-9413-82d72bebcee7",true,992, 504);
			//foreach input parameter
	    	ScriptBuilder.BuildFormLinkInScript(this.lblDocHeaderSequence73,"lblDocHeaderSequence73", new FormLinkInParam[]{new FormLinkInParam("ID","","Key","DocHeaderSequence73",1),new FormLinkInParam("EntityFullName","","","",1), });
			//foreach output set data
	    	ScriptBuilder.BuildFormLinkOutScript(this.lblDocHeaderSequence73,"lblDocHeaderSequence73", new FormLinkOutParam[]{new FormLinkOutParam("ID","","Key","DocHeaderSequence73"),new FormLinkOutParam("Code","","Value","DocHeaderSequence73"),new FormLinkOutParam("Name","","Text","DocHeaderSequence73"),new FormLinkOutParam("EntityFullName","","",""), });
		
								

		
			UIControlBuilder.BuilderUFControl(this.lblDocHeaderSequence73, "11");		


				this.DocHeaderSequence73 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"DocHeaderSequence73",true,true, true,153, 20, 2, 7, 1, 1, "100","12",false,false,true,"lblDocHeaderSequence73","3ace27a1-1605-492b-a7a6-2536761903ad","d5e26de8-573e-46e2-9c54-a6e361acbb6e");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocHeaderSequence73, "False", "DocHeaderSequence", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldDocHeaderSequence, "PRChangeDocType");
			UIControlBuilder.SetReferenceControlRefInfo(this.DocHeaderSequence73,"99ee7f41-f68e-4127-8d7f-96b97d2a3371", 580,408, "Name","Code","ID", this.Model.PRChangeDocType.FieldDocHeaderSequence_Code,this.Model.PRChangeDocType.FieldDocHeaderSequence_Name);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.DocHeaderSequence73,"DocHeaderSequence73",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","Code",""),new ReferenceOutputParam("","Name",""),new ReferenceOutputParam("","Description",""),new ReferenceOutputParam("","EntityType_FullName",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.DocHeaderSequence73, "12");		
		 

				this.lblID97 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblID97", "", "False", "True", "Right", 152, 20, 0, 0, 1, 1, "100","24caddb8-19b9-40b6-8a9f-4e1515a2142c","4c2f3ef9-cb23-4509-9879-27275188a663");


								

		
			UIControlBuilder.BuilderUFControl(this.lblID97, "15");		


				this.ID97 = UIControlBuilder.BuilderNumberControl(_UFCard, "ID97", "False", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblID97","8.0","24caddb8-19b9-40b6-8a9f-4e1515a2142c","04d964d2-61b1-40dd-a666-d750942e0c6c",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ID97, "False", "ID", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldID, "PRChangeDocType");
	
		
			UIControlBuilder.BuilderUFControl(this.ID97, "16");		
		 

				this.lblSysVersion115 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSysVersion115", "", "False", "True", "Right", 152, 20, 0, 0, 1, 1, "100","fa6cdbc6-4e77-45fc-9aaa-4ff256284c84","1e7e6d61-772a-420c-9458-89069fa3dd2c");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSysVersion115, "17");		


				this.SysVersion115 = UIControlBuilder.BuilderNumberControl(_UFCard, "SysVersion115", "True", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblSysVersion115","8.0","fa6cdbc6-4e77-45fc-9aaa-4ff256284c84","c9469c13-e604-43a1-97eb-3f2aed80fa30",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.SysVersion115, "False", "SysVersion", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldSysVersion, "PRChangeDocType");
	
		
			UIControlBuilder.BuilderUFControl(this.SysVersion115, "18");		
		 

				this.lblIsDocNoEditable213 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblIsDocNoEditable213", "", "True", "True", "Right", 153, 20, 0, 10, 1, 1, "100","5b0b82ed-45c5-48f7-978a-7304d2b148f2","5b0b82ed-45c5-48f7-978a-7304d2b148f2");


								

		
			UIControlBuilder.BuilderUFControl(this.lblIsDocNoEditable213, "19");		


				this.IsDocNoEditable213 = UIControlBuilder.BuilderUFCheckbox(_UFCard, "IsDocNoEditable213", true, true, "Left", 60, 0, 153, 20, 2, 10, 1, 1, "100",false,"lblIsDocNoEditable213","7a57a55c-baec-42a2-80a0-eb9426a55bf6","b47b21cf-5184-496a-965d-12a8eed04871");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.IsDocNoEditable213, "False", "IsDocNoEditable", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldIsDocNoEditable, "PRChangeDocType");
		

		
			UIControlBuilder.BuilderUFControl(this.IsDocNoEditable213, "20");		
		 

				this.lblApproveType91 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblApproveType91", "", "True", "True", "Right", 153, 20, 0, 11, 1, 1, "100","a310d0e1-a282-4936-a05f-9ff66c420376","5457dc49-d7f3-4e15-b269-bfa43924c792");


								

		
			UIControlBuilder.BuilderUFControl(this.lblApproveType91, "21");		


		        this.ApproveType91 = UIControlBuilder.BuilderDropDownList(_UFCard, "ApproveType91", "UFIDA.U9.Base.Doc.ApproveTypeEnum", true,  true, true, "Left", 2, 60, 0, 153, 20, 2, 11, 1, 1, "100",true,false,"lblApproveType91","a310d0e1-a282-4936-a05f-9ff66c420376","60351898-f5e3-43af-8659-2647651fc846");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ApproveType91, "False", "ApproveType", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldApproveType, "PRChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.ApproveTypeEnum");
			EnumControlsMap.Add(this.ApproveType91, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.ApproveType91, "22");		
		 

				this.lblConfirmType34 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblConfirmType34", "", "True", "True", "Right", 153, 20, 0, 12, 1, 1, "100","6b539511-5319-42be-9b24-dbe0830ad074","4c028212-5d3f-44dd-9e3d-1a96f7e108fb");


								

		
			UIControlBuilder.BuilderUFControl(this.lblConfirmType34, "23");		


		        this.ConfirmType34 = UIControlBuilder.BuilderDropDownList(_UFCard, "ConfirmType34", "UFIDA.U9.Base.Doc.ConfirmTypeEnum", false,  true, true, "Left", 2, 60, 0, 153, 20, 2, 12, 1, 1, "100",true,false,"lblConfirmType34","6b539511-5319-42be-9b24-dbe0830ad074","56d47c7f-40fc-43b0-8f57-15df5a9dd219");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ConfirmType34, "False", "ConfirmType", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldConfirmType, "PRChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.ConfirmTypeEnum");
			EnumControlsMap.Add(this.ConfirmType34, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.ConfirmType34, "24");		
		 

				this.lblEffective_EffectiveDate73 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_EffectiveDate73", "", "True", "True", "Right", 153, 20, 0, 15, 1, 1, "100","14d55cb4-0500-4179-933f-8cbf87644bbf","14d55cb4-0500-4179-933f-8cbf87644bbf");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_EffectiveDate73, "27");		


				this.Effective_EffectiveDate73 = UIControlBuilder.BuilderDatePicker(_UFCard, "Effective_EffectiveDate73", true, true, true, "Date","Left", 3, 60, 0, 153, 20, 2, 15, 1, 1, "100",true,false,"lblEffective_EffectiveDate73","10477464-4d27-46dd-9379-d3bcc7cd764f","62643cbf-3caa-44ea-99bf-8a02c688a790");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_EffectiveDate73, "False", "Effective_EffectiveDate", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldEffective_EffectiveDate, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Effective_EffectiveDate73, "28");		
		 

				this.lblEffective_DisableDate118 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_DisableDate118", "", "True", "True", "Right", 153, 19, 0, 16, 1, 1, "100","961b9b2d-640f-4381-a860-96043f32ca8b","961b9b2d-640f-4381-a860-96043f32ca8b");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_DisableDate118, "29");		


				this.Effective_DisableDate118 = UIControlBuilder.BuilderDatePicker(_UFCard, "Effective_DisableDate118", true, true, true, "Date","Left", 3, 60, 0, 153, 19, 2, 16, 1, 1, "100",true,false,"lblEffective_DisableDate118","1023c806-0810-494a-a342-42178903748b","312ff429-82b1-40f3-badc-a00049869ff2");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_DisableDate118, "False", "Effective_DisableDate", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldEffective_DisableDate, "PRChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Effective_DisableDate118, "30");		
		 

				this.Line1 = UIControlBuilder.BuilderUFLine(_UFCard, "Line1", 311, "Horizontal", "True", 311, 20, 0, 5, 3, 1, "100","43fe642d-5f5e-4d64-afa6-efccc01008d8","43fe642d-5f5e-4d64-afa6-efccc01008d8");
	

		
			UIControlBuilder.BuilderUFControl(this.Line1, "31");		


				this.Line2 = UIControlBuilder.BuilderUFLine(_UFCard, "Line2", 311, "Horizontal", "True", 311, 20, 0, 8, 3, 1, "100","1024a5e7-a1f1-4c83-9d3c-2f7240c32f62","1024a5e7-a1f1-4c83-9d3c-2f7240c32f62");
	

		
			UIControlBuilder.BuilderUFControl(this.Line2, "32");		


				this.Line3 = UIControlBuilder.BuilderUFLine(_UFCard, "Line3", 311, "Horizontal", "True", 311, 20, 0, 13, 3, 1, "100","af2479f3-5d08-4e3e-9e80-927ceb8c07c4","af2479f3-5d08-4e3e-9e80-927ceb8c07c4");
	

		
			UIControlBuilder.BuilderUFControl(this.Line3, "33");		


				this.lblEffective_IsEffective274 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_IsEffective274", "", "True", "True", "Right", 153, 20, 0, 14, 1, 1, "100","179e4eb3-7fbc-4b19-b1fa-547bc89588ac","179e4eb3-7fbc-4b19-b1fa-547bc89588ac");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_IsEffective274, "34");		


				this.Effective_IsEffective274 = UIControlBuilder.BuilderUFCheckbox(_UFCard, "Effective_IsEffective274", true, true, "Left", 60, 0, 153, 20, 2, 14, 1, 1, "100",false,"lblEffective_IsEffective274","a7019236-6415-45ef-bd09-25f302f0baab","2d3e033a-5776-4cba-9335-652ef53e7f55");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_IsEffective274, "False", "Effective_IsEffective", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldEffective_IsEffective, "PRChangeDocType");
		

		
			UIControlBuilder.BuilderUFControl(this.Effective_IsEffective274, "35");		
		 

				this.lblBusType85 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblBusType85", "", "True", "True", "Right", 153, 20, 0, 9, 1, 1, "100","2a17b679-3b2e-4232-8769-27efd53efa8d","544e2f26-eee2-4848-8134-1bae8c445ef4");


								

		
			UIControlBuilder.BuilderUFControl(this.lblBusType85, "36");		


		        this.BusType85 = UIControlBuilder.BuilderDropDownList(_UFCard, "BusType85", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.PRChangeTypeBE.PRChangeDocTypeEnum", true,  true, true, "Left", 2, 60, 0, 153, 20, 2, 9, 1, 1, "100",true,false,"lblBusType85","2a17b679-3b2e-4232-8769-27efd53efa8d","8523dbf1-2396-470d-bee5-a5af570feaa7");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.BusType85, "False", "BusType", this.Model.PRChangeDocType, this.Model.PRChangeDocType.FieldBusType, "PRChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.PRChangeTypeBE.PRChangeDocTypeEnum");
			EnumControlsMap.Add(this.BusType85, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.BusType85, "37");		
		 


													
			this.DocHeaderSequence73.IsMultiOrg  = false ;
			this.lblDocHeaderSequence73.SetMultiOrgInfo(this.DocHeaderSequence73,false);
			
																					

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





		#endregion
		

	}
}
